/*
 * @Description:
 * @Author: wangqi
 * @Date: 2022-04-21 10:40:13
 * @LastEditTime: 2022-04-29 17:58:36
 */
import { type RouteRecordRaw } from 'vue-router';
import RouterView from '@/layout/routerView/index.vue';
const moduleName = 'dashboard';

const routes: RouteRecordRaw[] = [
  {
    path: '/dashboard',
    name: moduleName,
    redirect: '/dashboard/index',
    meta: {
      title: '首页',
      icon: 'icon-shouye',
    },
    component: RouterView,
    children: [
      {
        path: 'index',
        name: `${moduleName}-index`,
        meta: {
          title: '工作台',
          icon: 'icon-shouye',
        },
        component: () =>
          import(/* webpackChunkName: "dashboard-welcome" */ '@/views/dashboard/index.vue'),
      },
    ],
  },
];

export default routes;
